package Wix::Tag::Feature;

use parent qw/Wix::Tag/;

sub new() {
	my ($class, $args) = @_;
	
	my $self = Wix::Tag->new({TAG => 'Feature'});
	
	$self->addAttr('Id', $args->{ID});
	$self->addAttr('Title', $args->{TITLE});
	$self->addAttr('AllowAdvertise', $args->{ALLOWADVERTISE});
	$self->addAttr('Display', $args->{DISPLAY});
	$self->addAttr('Level', $args->{LEVEL});
	$self->addAttr('ConfigurableDirectory', $args->{CONFIGURABLEDIRECTORY});
	$self->addAttr('Description', $args->{DESCRIPTION});
	
	return bless($self, $class);
}

sub addComponentRef($) {
	my ($self, $componentref) = @_;

	$self->addElement('Wix::Tag::ComponentRef', $componentref);	
}

sub addComponentGroupRef($) {
	my ($self, $componentgroupref) = @_;

	$self->addElement('Wix::Tag::ComponentGroupRef', $componentgroupref);	
}

1;